<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .item {
        width: 400px;
        height: 160px;
        margin: 100px auto;
        border: 1px solid #ccc;
        position: relative;
    }
    .ribbon {
        position: absolute;
        width: 80px; 
        height: 0;
        border: 20px solid transparent;
        border-top: 0 solid;
        border-bottom: 20px solid #b4a078;
        top: 16px;
        right: -34px;
        transform: rotate(45deg);
        text-align: center;
        color: #fff;
        line-height: 20px;
        font-size: 12px;
    }
    .ribbon::after {
        position: absolute;
        bottom: -29px;
        right: -29px;
        content: '';
        width: 0; 
        height: 0;
        border: 9px solid transparent;
        border-left: 9px solid rgb(83, 82, 82);
        transform: rotate(-45deg);
    }
</style>
<body>
    <div class="item">
        <div class="ribbon">我是一条彩带</div>
    </div>
</body>
</html>